﻿using Microsoft.EntityFrameworkCore;

namespace DailyApp.Api.DataModel
{
    /// <summary>
    /// 数据库上下文
    /// </summary>
    public class DailyDbContext : DbContext
    {

        public DailyDbContext(DbContextOptions<DailyDbContext> options) : base(options)
        {

        }

        /// <summary>
        /// 数据库迁移:账号
        /// 加virtual代表延时加载：需要多少加载多少；不加是惰性/懒汉加载：即加载所有
        /// </summary>
        public virtual DbSet<AccountInfo> AccountInfo { get; set; }

    }
}
